package com.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import com.demo.bean.Paper;

//写了一个spring的配置文件
@Configuration
public class TransactionConfig1 {

	
	@Bean("paper10")
	public Paper getPaper10() {
		return new Paper("测试试卷10", 10);
	}
	
	@Bean("paper9")
	public Paper getPaper9() {
		return new Paper("测试试卷9", 9);
	}
	
	
}
